<HTML>
<HEAD>
<TITLE>folder</TITLE>
</HEAD>
<BODY>
<?php
	// use excell to look the folder
	print("<TABLE BORDER=\"1\">\n");
	// create the head of the excel
	print("<TR><font color='red'>\n");
	print("<TH>file name</TH>\n");
	print("<TH>the length of the file</TH>\n");
	print("</font></TR>\n");
	$myDirectory = opendir(".");		//create sth 
	// read sub
	while($entryName = readdir($myDirectory))
	{
		print("<TR>");
		print("<TD>$entryName</TD>");
		print("<TD ALIGN=\"right\">");
		print(filesize($entryName));
		print("</TD>");
		print("</TR>\n");
	}
	closedir($myDirectory);			// close folder
	print("</TABLE>\n");
?>
</BODY>
</HTML>